home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3287 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  40 lines

  1. Path: oreig.uji.es!ii202
  2. From: ii202@rossegat.uji.es (Jorge Acereda Macia)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Demo/game to OS friendly part II
  5. Date: 12 Feb 1996 13:29:25 GMT
  6. Organization: Universitat Jaume I. Castell≤ de la Plana. Spain
  7. Message-ID: <4fnfbl$1m7@oreig.uji.es>
  8. References: <3118bf29@gauss.demon.co.uk> <4fck17$3v1@serpens.rhein.de>
  9. NNTP-Posting-Host: @rossegat.uji.es
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Michael van Elst (mlelstv@serpens.rhein.de) wrote:
  13.  
  14. > There are two legal methods to generate a bitmap:
  15.  
  16. >     struct BitMap BM;
  17.  
  18. >     InitBitMap(&BM, depth, width, height);
  19. >     for (i=0; i<depth; ++i)
  20. >         BM.Planes[i] = some_chip_mem;
  21.  
  22. > and
  23.  
  24. >     struct BitMap *bm;
  25.  
  26. >     bm = AllocBitMap(width, height, depth, flags, friend_bitmap);
  27.  
  28. > The first kind of bitmap is sufficient for any rendering operation but might be slower
  29. > than necessary. It does not necessarily work for a display bitmap and it doesn't
  30.                   ^^ ^^^^ ^^^ ^^^^^^^^^^^ ^^^^ ^^^ ^ ^^^^^^^ ^^^^^^
  31. Why? Memory alignment? 
  32.  
  33. --
  34.  ---------------------------- --------------------------------------------
  35. |       Jorge Acereda        |      Dream the same thing everynight       |
  36. |   ii202@rossegat.uji.es    |       I see our freedom in my sight        |
  37. |       Intel Outside        |     No locked doors, no windows barred     |
  38. |        Amiga Rules         |   No things to make my brain seem scarred  |
  39.  ---------------------------- --------------------------------------------
  40.